package com.eight.cloud.openfeign.uid.api;

import com.eight.cloud.core.global.result.Result;
import com.eight.cloud.openfeign.uid.factory.UidGenerateFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @InterfaceName: MessageClient
 * @Author: TXC
 * @Date: 2024-10-11 14:10
 **/
@FeignClient(value = "cloud-uid", contextId = "uidGenerateClient", fallbackFactory = UidGenerateFallbackFactory.class)
public interface UidGenerateClient {
    /**
     * 发送消息
     */
    @PostMapping("/uid/getUid")
    Result<String> getUid();

    @PostMapping("/uid/parseUid")
    Result<String> parseUid(Long uid);

}
